[10]?
?
Example?Initialization?Program:?
//-------------------------------------------------------------------------------
Sub Writecom
Set P3.0 'A0 = H = Write command
P1 = A 'move data to P1
Reset P3.1 'chip select
Reset P3.7 'R/W
Set P3.4 'E
Reset P3.4 'E
Set P3.7 'R/W
Set P3.1 'CS
End Sub
Sub Writedata
Reset P3.0 'A0 = L = Write data
P1 = A
Reset P3.1
Reset P3.7
Set P3.4
Reset P3.4
Set P3.7
Set P3.1
End Sub
//-------------------------------------------------------------------------------
Sub Init
Set P3.2 'SEL=1 = Motorola 6800 write
interface
Reset P3.6 'RESET
Waitms 10 'wait
Set P3.6 'RESET done
Waitms 100 'wait
A = &H40 'system set command
Call Writecom
A = &H30 'set parameters
Call Writedata
A = &H87 'horizontal character size=8
Call Writedata
A = &H07 'vertical character size=8
Call Writedata
A = &H27 'display addresses per line
Call Writedata
A = &H50 'total address range per line
Call Writedata
A = &HEF '240 display lines
Call Writedata
A = &H28 'virtual address1
Call Writedata
A = &H00 'virtual address2
Call Writedata
A = &H44 'scroll
Call Writecom
A = &H00 'start address1
Call Writedata
A = &H00 'start address2
Call Writedata
A = &HEF '240 lines
Call Writedata
A = &HB0 '2nd screen start1
Call Writedata
A = &H04 '2nd screen start2
Call Writedata
A = &HEF '2nd screen 240 lines
Call Writedata
A = &H00 '3rd screen address1
Call Writedata
A = &H00 '3rd screen address2
Call Writedata
相关PDF资料
NHD-320240WG-BXTGH-VZ#-3VR LCD MOD GRAPH 320X240 WH TRANSFL
NHD-320240WG-COTFH-VZ#-010-80 LCD MOD GRAPHIC 320X240 TRANSFL
NHD-320240WG-COTFH-VZ# LCD MOD GRAPHIC 320X240 TRANSFL
NHD-320240WG-DTMI-VZ# LCD MOD GRAPH 320X240 TRANSFL
NHD-320240WX-C0TFH-V#I040 LCD MOD GRAPH 320X240 WH TRANSFL
NHD-4.3-480272MF-ATXI#-1 LCD DISPLAY TFT 480X272 TRANS
NHD-4.3-480272MF-ATXI#-CTP-1 DISPLAY TFT MODULE W/TOUCH
NHD-4.3-480272MF-ATXI#-T-1 LCD DISPLAY TFT 480X272 TRANS
相关代理商/技术参数
NHD-320240WG-BxTGH-VZ#-3VR 功能描述:LCD 图形显示模块和配件 320 x 240 STN-GRAY 166.8 x 109.0 RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk
NHD-320240WG-BXTGH-VZ-3VR 制造商:NEWHAVEN 制造商全称:NEWHAVEN 功能描述:Graphic Liquid Crystal Display Module
NHD-320240WG-BxTMI-VZ# 功能描述:LCD 图形显示模块和配件 STN-Blue (-) Transm 166.8 x 109.0 RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk
NHD-320240WG-C0ABA-VZ-010 制造商:NEWHAVEN 制造商全称:NEWHAVEN 功能描述:Liquid Crystal Display Graphic Module
NHD-320240WG-C0ABH-VZ-010 制造商:NEWHAVEN 制造商全称:NEWHAVEN 功能描述:Liquid Crystal Display Graphic Module
NHD-320240WG-C0AFA-VZ-010 制造商:NEWHAVEN 制造商全称:NEWHAVEN 功能描述:Liquid Crystal Display Graphic Module
NHD-320240WG-C0AGA-VZ-010 制造商:NEWHAVEN 制造商全称:NEWHAVEN 功能描述:Liquid Crystal Display Graphic Module
NHD-320240WG-C0AGH-VZ-010 制造商:NEWHAVEN 制造商全称:NEWHAVEN 功能描述:Liquid Crystal Display Graphic Module